import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/subaccount',
  name: 'subaccount',
  redirect: '/subaccount/agents',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: '子账号',
    icon: 'el-icon-user',
    sort: 3,
    roles: ['admin', 'adminSp', 'proxy1']
  },
  children: [
    {
      path: '/subaccount/agents',
      name: 'agents',
      component: () => import('@/views/subaccount/agents/index.vue'),
      meta: {
        title: '子账号管理',
        icon: 'el-icon-more'
      }
    }
  ]
} as RouteRecordRaw;
